package com.yzc.android.ui.viewholder;

import android.view.View;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.ButterKnife;
import com.yzc.android.R;
import com.yzc.android.network.response.SectionDataResponse;
import com.yzc.android.widget.CircularImageView;

/**
 * Created by yzc on 16/4/21.
 */
public class SectionViewHolder extends KDBaseViewHolder<SectionDataResponse> {

    @Bind(R.id.stick_img)
    public CircularImageView mCircularImageView;

    @Bind(R.id.stick_text)
    public TextView mSectionTitle;

    public SectionViewHolder(final View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }

    @Override
    public void showData(final int position, final SectionDataResponse itemData) {
        mSectionTitle.setText(itemData.mSectionBean.sectionTitle);
    }
}
